<style>
.affix{top:10px;}
.head-style-list li,.editor-template-list li{cursor: pointer;}
</style>

		<div class="ui-portlet">
			{{template wxes/_user_wxes}}
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;个人中心</a></li>
			  <li><a href="/wx_activities/mine">微活动</a></li>
			  <li class="active">新增|编辑</li>
			</ol> 
		</div>          
       <hr>

{{$this->Form->create('WxVote',array('class'=>'form-horizontal','role'=>'form'))}}
		
	<div class="tab-content">
		
			
		<div role="tabpanel" class="tab-pane active" id="chi-info">
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxVoteAddress">投票活动</label>
				<div class="col-sm-9 controls">
					{{$this->Form->input('activity_id',array('class'=>'form-control','div'=>false,'label'=>false,))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxVoteName">投票名称</label>
				<div class="col-sm-9 controls">
					{{$this->Form->hidden('id')}}
					{{$this->Form->input('name',array('class'=>'form-control','div'=>false,'label'=>false))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxStorefrontCoverImg">封面图片</label>
				<div class="col-sm-9 controls select">
					{{$this->Swfupload->load('coverimg',array(
					'label'=>false,'modelClass'=>'WxVote',
					'no_db'=>1,'upload_limit'=>1,
					'file_types'=> '*.jpg;*.gif;*.png;*.bmp',
					'isadmin'=>false
					))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxVoteName">投票序号</label>
				<div class="col-sm-9 controls">
					{{$this->Form->input('sequence',array('type'=>'number', 'class'=>'form-control','div'=>false,'label'=>false))}}
					<p>用户将发送“tp+投票序号”进行投票，没有序号的将无法投票</p>
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxVoteName">投票次数</label>
				<div class="col-sm-9 controls">
					{{$this->Form->input('vote_nums',array('type'=>'number', 'class'=>'form-control','div'=>false,'label'=>false))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxVoteName">阅读次数</label>
				<div class="col-sm-9 controls">
					{{$this->Form->input('view_nums',array('type'=>'number', 'class'=>'form-control','div'=>false,'label'=>false))}}
				</div>
			</div>			
					
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxVoteBusinessHours">内容描述</label>
				<div class="col-sm-9 controls">
					{{$this->Form->input('content',array('class'=>'form-control','rows'=>'3','div'=>false,'label'=>false,))}}
				</div>
			</div>
		</div>
	</div>
	
	
	<div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="提交"></div>
	</div>
{{$this->Form->end()}}

{{$this->Html->script(array(
	'swfupload/swfupload.js',
	'swfupload/swfupload.queue.js',
	'swfupload/swfupload.cookies.js',
	'swfupload/fileprogress.js',
	'swfupload/handlers.js',
))}}
